package com.coocaa.app.lib.cleaner.scanner.config;

import android.content.Context;

import com.coocaa.app.lib.cleaner.scanner.config.impl.ConfigManager;

/**
 * Created by lu on 17-4-17.
 */

public class ConfigManagerFactory {//} extends AbstractFactory<ConfigManager> {

    public interface ConfigLoader {
        void init(Context context);

        ConfigDataFactory.ConfigData load();
    }

    public static final ConfigManagerFactory factory = new ConfigManagerFactory();

    private ConfigManager instance = null;

    public ConfigManager create() {
        return new ConfigManager();
    }

    public synchronized ConfigManager instance() {
        if (instance == null)
            instance = create();
        return instance;
    }
}
